package com.lxmes.business.service;

import java.util.List;

import com.lxmes.business.domain.CcChukuInfo;
import com.lxmes.business.domain.CcRukuInfo;

/**
 * 入库单Service接口
 * 
 * @author 张志煜
 * @date 2022-11-27
 */
public interface ICcRukuInfoService 
{
    /**
     * 查询入库单
     * 
     * @param id 入库单主键
     * @return 入库单
     */
    public CcRukuInfo selectCcRukuInfoById(Long id);

    /**
     * 查询入库单列表
     * 
     * @param ccRukuInfo 入库单
     * @return 入库单集合
     */
    public List<CcRukuInfo> selectCcRukuInfoList(CcRukuInfo ccRukuInfo);
    public List<CcRukuInfo> selectCcRukuInfoMainList(CcRukuInfo ccRukuInfo);
    /**
     * 查询入库单结算列表
     *
     * @param ccRukuInfo 入库单
     * @return 入库单集合
     */
    public List<CcRukuInfo> selectJieSuanCcRukuInfoList(CcRukuInfo ccRukuInfo);
    //首页大屏入库数据
    public List<CcRukuInfo> selectCcRukuInfoDaBbList(CcRukuInfo ccRukuInfo);
    /**
     * 新增入库单
     * 
     * @param ccRukuInfo 入库单
     * @return 结果
     */
    public int insertCcRukuInfo(CcRukuInfo ccRukuInfo);
    //采购订单入库
    public int insertPurCcRukuInfo(CcRukuInfo ccRukuInfo);
    //出库单流转入库
    public int insertCkCcRukuInfo(CcRukuInfo ccRukuInfo);

    public int zdRuKu(CcRukuInfo ccRukuInfo);
    //手机端扫码入库
    public int insertSmCcRukuInfo(CcRukuInfo ccRukuInfo);
    //扫码采购订单入库
    public int insertSmPurCcRukuInfo(CcRukuInfo ccRukuInfo);
    //手动入库添加物料
    public List<CcRukuInfo> addRukuItemInfo(Long[] ids);
    //添加采购入库的物料
    public List<CcRukuInfo> addPurRukuItemInfo(Long[] ids);
    //添加出库单的的物料
    public List<CcRukuInfo> addChukuRukuItemInfo(Long[] ids);
    //执行入库
    public int zhixingRuku(Long[] ids);

    /**
     * 修改入库单
     * 
     * @param ccRukuInfo 入库单
     * @return 结果
     */
    public int updateCcRukuInfo(CcRukuInfo ccRukuInfo);

    /**
     * 批量删除入库单
     * 
     * @param ids 需要删除的入库单主键集合
     * @return 结果
     */
    public int deleteCcRukuInfoByIds(Long[] ids);

    /**
     * 删除入库单信息
     * 
     * @param id 入库单主键
     * @return 结果
     */
    public int deleteCcRukuInfoById(Long id);
    /**
     * 入库单导入
     */
    public String imporIteminfo(List<CcRukuInfo> userList, boolean updateSupport, String operName);

}
